Find future amount A if a principal P is deposited at interest rate r, compounded annually, for n years.